package com.yami.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.bean.model.Vip;
import com.yami.shop.dao.VipMapper;
import com.yami.shop.service.VipService;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class VipServiceImpl extends ServiceImpl<VipMapper, Vip> implements VipService {


    @Override
    public void saveVip(Vip vip) {
        vip.setCreateTime(new Date());
        this.save(vip);
    }
}
